package com.xgry.bpm.api.base.beeper.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("Beeper")
public class Beeper extends Model<Beeper> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "beeper_id", type = IdType.AUTO)
    private Integer beeperId;

    private String anonymityYn;

    private String attachmentId;

    private String attachmentName;

    private LocalDateTime beeperTime;

    private Integer clickCount;

    private String content;

    @TableField("depId")
    private String depId;

    @TableField("depName")
    private String depName;

    private String format;

    private String iftop;

    private String lastEditTime;

    private String lastEditor;

    private String provider;

    private String providerId;

    private String publish;

    private String readers;

    @TableField("roleId")
    private Integer roleId;

    private String subject;

    private String subjectColor;

    private String summary;

    private String type;

    @TableField("userId")
    private Integer userId;


    @Override
    protected Serializable pkVal() {
        return this.beeperId;
    }

}
